#include <stdio.h>
#include <stdlib.h>

int main()
{
   int c;
   int a = 10;
   c = a++; 
   printf("Assign value before operation: \n");
   printf("Line 1 - c value %d\n", c );
   printf("Line 2 - a value %d\n", a );
   a = 10;
   c = a--; 
   printf("Line 3 - c value %d\n", c );
   printf("Line 4 - a value %d\n", a );
 
   printf("Assign value after operation:\n");
   a = 10;
   c = ++a; 
   printf("Line 5 - c value %d\n", c );
   printf("Line 6 - a value %d\n", a );
   a = 10;
   c = --a; 
   printf("Line 7 - c value %d\n", c );
   printf("Line 8 - a value %d\n", a );
 
 system("pause");
}